<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01vue</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<div id="app" >
    <h1>
        {{num}}
    </h1>
    <input type="text" v-model="num"/>
    <button v-on:click.stop="stopClick">+</button>
    <button v-on:click="num--">-</button>
</div>


</body>
<script type="text/javascript">
    var app =new Vue({
        el:"#app",
        data:{
            num:1
        },
        methods:{
            stopClick(){
                console.log("stop click")
            }
        }

    })

</script>
</html>